<!--<include file="Core_Extend::template('header')" />-->

<!--{:Core_Extend::emotion()}-->
<!--{:Core_Extend::validate()}-->

<script src="<!--{:__PUBLIC__}-->/js/jquery/jquery.insertcontent.js"></script>
<script src="<!--{:__PUBLIC__}-->/js/jquery/autoresize/jquery.autoresize.js"></script>

<!--{script}-->
$(function(){
	$('.userguestbook-content').emotionsToHtml();
	
	$('#userguestbook_content').autoResize({
		onResize:function(){
			$(this).css({opacity:0.8});
		},
		animateCallback:function(){
			$(this).css({opacity:1});
		},
		animateDuration:300,
		extraSpace:0,
		min:'100px'
	});

	$(".face-icon").jqfaceedit({txtAreaObj:$("#userguestbook_content"),textareaid:'userguestbook_content',containerObj:$('#emotion_parentcontainer'),top:25,left:-27});
});


function commentSubmit(){
	var comment_name=$.trim($('#userguestbook_name').val());
	var comment_content=$.trim($("#userguestbook_content").val());
	var bResult=commentCheckForm_(comment_name,comment_content);
	if(bResult===false){
		return false;
	}

	$("#comment-submit").val(Q.L('正在提交评论','Common'));
	$("#comment-submit").attr("disabled", "disabled");
	Q.AjaxSubmit('userguestbook-commentform',Q.U('home://space/add_userguestbook'),'',function(data,status){
		$("#comment-submit").attr("disabled", false);
		$("#comment-submit").val(Q.L('提交评论','Common'));
		if(status==1){
			setTimeout(function(){window.location.href=data.jumpurl;},1000);
		}
	});
}

sCurrentTextareaContent='userguestbook_content';

checkForm(commentSubmit);
<!--{/script}-->

	<div class="container_12">
		<ul class="breadcrumb">
			<li><a href="<!--{:__APP__}-->" title="<!--<lang package='__COMMON_LANG__@Common'>-->主页<!--</lang>-->"><!--<lang package='__COMMON_LANG__@Common'>-->主页<!--</lang>--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li><a href="<!--{:Q::U('home://space@?id='.$nId)}-->"><!--<lang package='Template'>-->个人空间<!--</lang>--></a> <span class="divider">/</span></li>
			<li><!--<lang package='Template'>-->我的留言板<!--</lang>--></li>
		</ul>
	</div>

	<div class="container_12 container_box">
		<!--<include file="space+menu" />-->
		
		<div class="grid_12">
			<h3><!--<lang package='Template'>-->主人<!--</lang>--></h3>
			<table class="table table-bordered table-striped">
				<tbody>
					<tr>
						<td width="215px">
							<a href="<!--{:Q::U('home://space@?id='.$nId.'&type=avatar')}-->"><img src="<!--{:Core_Extend::avatar( $nId,'big' )}-->"/></a>
						</td>
						<td>
							<p><!--{$nId|Core_Extend+getUsericon}-->&nbsp;<a href="<!--{:Q::U('home://space@?id='.$arrUserInfo['user_id'])}-->"><!--{$arrUserInfo['user_name']}-->@<!--{$arrUserInfo['user_id']}--></a><!--{$arrUserInfo|Core_Extend+getUseronlineicon}--></p>
							<p><img src="<!--{:Profile_Extend::getUserprofilegender($arrUserInfo['userprofile_gender'])}-->" border="0" align="absmiddle" />&nbsp;<!--<lang package='Template'>-->性别<!--</lang>--> <!--{:Profile_Extend::getGender($arrUserInfo['userprofile_gender'])}--></p>
							<p style="margin-bottom:30px;">
								<!--<lang package='Template'>-->等级<!--</lang>-->&nbsp;<a href="<!--{:Q::U('home://space@?id='.$arrUserInfo['user_id'].'&type=rating')}-->" ><!--{$arrRatinginfo['rating_name']}--></a>
								<span class="userrating_tips" tips="<!--<lang package='__COMMON_LANG__@Common'>-->当前积分<!--</lang>-->&nbsp;<!--{$nUserscore}-->,<!--<lang package='__COMMON_LANG__@Common'>-->等级名字<!--</lang>-->&nbsp;<!--{$arrRatinginfo['rating_name']}-->,<!--<lang package='__COMMON_LANG__@Common'>-->距离下一个等级<!--</lang>-->&nbsp;<!--{$arrRatinginfo['next_rating']['rating_name']}-->&nbsp;<!--<lang package='__COMMON_LANG__@Common'>-->还差<!--</lang>-->&nbsp;<!--{$arrRatinginfo['next_needscore']}-->&nbsp;<!--<lang package='__COMMON_LANG__@Common'>-->积分<!--</lang>-->"><img src="<!--{$arrRatinginfo['rating_icon']}-->" style="position:relative;top:-2px;" />
								</span>
							</p>
							<!--{if $arrUserInfo['user_sign']}-->
							<div class="common_usersign">
								<!--{$arrUserInfo['user_sign']|Core_Extend+usersign}-->
							</div>
							<!--{/if}-->
						</td>
					</tr>
				</tbody>
			</table>

			<!--{# 留言表单}-->
			<!--<include file="space+guestbookcommentform" />-->

			<!--{# 留言列表}-->
			<!--<include file="space+guestbookcommentlist" />-->
		</div>
	</div>

<!--<include file="Core_Extend::template('footer')" />-->